<?php
namespace Controller;
use Controller\Controller;
use Model\HomeModel;

class HomeController extends Controller
{
	public $home;
	public function  __construct()
	{
		parent::__construct();
		$this->home = new HomeModel();


	}
	
	//显示博客首页
	public function blog()
	{
		$public = $GLOBALS['config']['WEB_SITE'].'public/';
		//var_dump($public);

		$this->assign('$public' , $public );
		$this->display('home/blog.html');
	}
	
	//显示个人主页
	public function about()
	{

		$this->display('home/about.html');
	}
	//显示博客内容详情
	public function detail()
	{
		$this->display('home/details.html');
	}
}



